package giab.weixin.web.componet;

import giab.weixin.web.xml.bean.Message;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@Controller
public class ClientMessageService {

	@RequestMapping("/sendClientMessage")
	public void putClientMessage(@RequestParam("code")String code,@RequestParam("clientID")String clientID,@RequestParam("content")String content,HttpServletRequest request,HttpServletResponse response){
		Message message = new Message();
		message.setClientID(clientID);
		message.setCode(code);
		message.setContent(content);
		try {
			response.getWriter().write("成功");	
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
		
		
	}
}
